package com.vr.xuecheng.auth.dto;

import com.vr.xuecheng.base.valid.ValidationGroup;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * @author hzh
 * @date 2025/03/31
 * 注册信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RegisterDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 566990743699909826L;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空",groups = {ValidationGroup.Insert.class})
    private String cellphone;
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空",groups = {ValidationGroup.Insert.class})
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空",groups = {ValidationGroup.Insert.class})
    private String password;
    /**
     * 确认密码
     */
    @NotBlank(message = "确认密码不能为空",groups = {ValidationGroup.Insert.class})
    private String confirmpwd;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空",groups = {ValidationGroup.Insert.class})
    private String nickname;
    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空",groups = {ValidationGroup.Insert.class})
    private String checkcode;
    /**
     * 验证码key
     */
    @NotBlank(message = "验证码key不能为空",groups = {ValidationGroup.Insert.class})
    private String checkcodekey;
}
